﻿@model PageList<Employee>
<div class="table-scrollable">
    <table class="table table-striped table-bordered table-hover table-manage">
        <thead>
            <tr>
                <th>
                    <label><input class="checkbox-check" type="checkbox"><span></span></label>
                </th>
                <th data-order="@nameof(Employee.Name)">姓名</th>
                <th data-order="@nameof(Employee.Phone)">手机</th>
                <th data-order="@nameof(Employee.Dept)">部门</th>
                <th data-order="@nameof(Employee.UserId)">账号</th>
                <th data-order="@nameof(Employee.PointName)">稽查点</th>
                <th data-order="@nameof(Employee.Enabled)"><div class="text-center">有效</div></th>
                <th data-order="@nameof(Employee.CreateTime)"><div class="text-center">创建时间</div></th>
                <th data-order="@nameof(Employee.ModifyTime)"><div class="text-center">修改时间</div></th>
                <th><div class="text-center">操作</div></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var record in Model)
            {
                <tr class="cursor-pointer" data-url="@Url.Action("Details",new {id = record.Id})">
                    <td>
                        <label><input class="checkbox-check" type="checkbox" value="@record.Id"><span></span></label>
                    </td>
                    <td class="">
                        <a class="uimodal" data-url="@Url.Action("Details", new {id = record.Id})">
                            @record.Name
                        </a>
                    </td>
                    <td class="">@record.Phone</td>
                    <td class="">@record.Dept</td>
                    <td class="">@record.UserAccount</td>
                    <td class="">@record.PointName</td>
                    <td class="text-center">@Html.BoolLabel(record.Enabled, record.EnabledText, record.EnabledText)</td>
                    <td class="text-center">@DateTimeHelper.FormatDateHasSecond(record.CreateTime)</td>
                    <td class="text-center">@DateTimeHelper.FormatDateHasSecond(record.ModifyTime)</td>
                    <td class="text-center">
                        <a class="color-primary uimodal" data-toggle="tooltip"
                           data-url="@Url.Action("Edit", new {id = record.Id})"
                           title="编辑">
                            <i class="fa fa-lg fa-edit"></i>
                        </a>
                        &nbsp;
                        <a class="color-danger tsdelete" data-toggle="tooltip"
                           data-url="@Url.Action("Delete", new {id = record.Id})"
                           title="删除">
                            <i class="fa fa-lg fa-trash-o"></i>
                        </a>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
@Html.RenderPages(Model)
